#ifndef __APP_DELAY_H
#define __APP_DELAY_H
#include <sys/time.h>
#include <stdint.h>


uint32_t app_get_systime(void);
void app_sleep(volatile uint32_t *pt_cnt, uint32_t ums);
uint8_t app_pend_wake(uint32_t pt_cnt);
uint8_t app_capture_interval(volatile uint32_t *pt_cnt, uint32_t ums);
void app_update_interval(volatile uint32_t *pt_cnt);


#endif

